<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <link rel="stylesheet" href="/css/style.css">
</head>
<body>
  <div class="bgc4">
     <div class="mv">
         <span class="us"></span> <h1 class="xt">欢迎来到学生成绩管理系统！</h1>
     </div>
  </div>
</body>
<script src="/js/jquery-3.4.1.min.js"></script>
<script>
    function queryName(){
        $.ajax({
            url:"/webapi/student/queryinfo"
        }).done(function (rs){
            let name = rs.data.sname;
            $(".us").text(name);
        })
    }

    $(function (){
        queryName();
    })
</script>
</html>